package info.zhoutian.blog.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhoukai
 * @date 2018/8/23 10:06
 */
@RestController
public class TestController {

    @RequestMapping("/test")
    public String home() throws RuntimeException{
        System.out.println("===>throws Exception");
        new RuntimeException();
        return "hello world!";
    }

}
